<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>兑换信息</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('AdminCardRedeem/index')}">
        蟹券：
        <input class="form-control" type="text" name="tpname" style="width: 200px;" value="{:input('request.tpname')}"
            placeholder="蟹券">
        客户名称：
        <input class="form-control" type="text" name="name" style="width: 200px;" value="{:input('request.name')}"
            placeholder="客户名称：">
        客户电话：
        <input class="form-control" type="text" name="tele" style="width: 200px;" value="{:input('request.tele')}"
            placeholder="客户电话：">
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('AdminCardRedeem/index')}">清空</a>
    </form>
    <form method="post" class="js-ajax-form">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th>蟹券</th>
                <th>规格</th>
                <th>客户名称</th>
                <th>客户电话</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="list" item="vo">
                <tr>
                    <td>{$vo.tpname}</td>
                    <td>{$vo.spk}</td>
                    <td>{$vo.name}</td>
                    <td>{$vo.tele}</td>
                    <td>{:express_status($vo.express_status)}</td>
                    <td>
                        <if condition="comm_auth_check('edit')">
                            <a href='{:url("AdminCardRedeem/edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
                        </if>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>